Patterns and Anti-Patterns in Modelica
نویسنده
چکیده
In 1977, Christopher Alexander, Sara Ishikawa and Murray Silverstein published the book “A Pattern Language: Towns, Buildings, Construction” [1]. Although the topic of the book was architecture, it inspired Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides in their approach to pattern based software development. This ultimately led to the publication, in 1994, of the book “Design Patterns: Elements of Reusable Object-Oriented Software” [2] (also known as the “Gang of Four” or “GoF” book) which launched a major movement in the software development community toward pattern based software design. The idea behind the pattern movement is to formally identify sound design solutions to common problems. Since the publication of “Design Patterns” there have been numerous books published on the topic of software patterns. Several of these books dealt with the sub-topic of anti-patterns [3,4]. In contrast to a normal pattern, anti-patterns are an attempt to identify common bad practices and ways they can be refactored using sound design patterns. The emphasis of the pattern community is, understandably, on object-oriented languages with procedural semantics. This paper will build on previous work [5] identifying patterns in Modelica. These design patterns include how medium properties can be handled in a flexible way, how to deal with systems with varying causality and differential index, idealized plant control and, finally, coordination between models. In addition, this paper includes some extensive discussion of anti-patterns to avoid redundant code, awkward data management and inflexible models. This paper continues the discussion on patterns within the Modelica community with the hope that this will encourage others to contribute patterns of their own. One obvious benefit of such efforts will be additional resources for Modelica developers to make the process of developing models in Modelica easier. In addition, we expect that many of the patterns discussed will also generate proposals for improving the Modelica language through new features and semantics.
منابع مشابه
The Differences in Sensorimotor Rhythm Power During Performing In-Phase and Anti-Phase Patterns in Bimanual Coordination
Purpose: The sensorimotor cortex oscillations (frequency ranging between 12 and 15 Hz), commonly known as Sensorimotor Rhythm (SMR) has previously displayed a promising link between the performance of the visuomotor related to skill execution and part of psychology that is adaptive (e.g. the process linked attention which is automatic). This study examined the extent of SMR power in the executi...
متن کاملEffects of Proprioceptive and Visual Disturbance on Inphase and Anti-phase Hand Performance
Purpose: The present study aimed to investigate the effect of sensory and movement speed manipulations on bimanual coordination dynamics. Here we compared to what extent the absence and or bias of different sensory modalities affect performance of coordination of movements. Methods: Fifteen physical education students of Shahid Beheshti University (aged 18-25 years) were partici...
متن کاملبررسی کشت های خون بیماران بستری از نظر میکروارگانیسم های شایع، تغییرات اپیدمیولوژیک و آنتی بیوگرام در بیمارستان امیراعلم 79-1377
Sepsis is one of the most critical medical emergency situations. Treatment with anti microbial drugs should be initiated as soon as samples of blood and other relevant sites have been cultured. Available information about patterns of anti microbial Susceptibility among bacterial isolates from the community, the hospital, and the patient should be taken in to account. It is important, pending cu...
متن کاملIdentification of dietary patterns among Iranian adults
Background: Identification of food patterns is of crucial important. As far as we know, no study has been yet carried out in the west of Iran. The aim of this study was to determine staple food patterns among adult persons in Khorramabad city. Materials and Methods: In this cross-sectional study food intake of 973 people (736 women) were gathered by Food Frequency Questionnaire (FFQ 208 food i...
متن کاملRealizations and Functional Patterns of Shell Nouns in Applied Linguistics Research Articles
This study intends to investigate the realizations and functional patterns of shell nouns in Applied Linguistics research articles. To this end, fifty research articles in the field of Applied Linguistic were selected from Journal of English for Academic Purposes and journal of English for Specific Purposes published by Elsevier. The articles were analyzed for the realizatio...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008